<%--
  Created by IntelliJ IDEA.
  User: dzw
  Date: 2018/3/15
  Time: 15:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<table class="table table-bordered table-condensed det-table" id="age_all_table">
  <thead>
  <tr>
    <th colspan="2">统计项</th>
    <th>人数</th>
    <th>比例</th>
  </tr>
  </thead>
  <tbody>
  <tr>
    <td rowspan="3"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">居民区书记</a></td>
    <td><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">男</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nan2}</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nan2Bili}</a></td>
  </tr>
  <tr>
    <td><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">女</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nv2}</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nv2Bili}</a></td>
  </tr>
  <tr>
    <td><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">平均年龄</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${avgAge2}</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">&nbsp;</a></td>
  </tr>

  <tr>
    <td rowspan="3"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">备选书记</a></td>
    <td><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">男</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nan1}</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nan1Bili}</a></td>
  </tr>
  <tr>
    <td><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">女</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nv1}</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nv1Bili}</a></td>
  </tr>
  <tr>
    <td><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">平均年龄</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${avgAge1}</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">&nbsp;</a></td>
  </tr>

  <tr>
    <td rowspan="3"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">合计</a></td>
    <td><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">男</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nan0}</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nan0Bili}</a></td>
  </tr>
  <tr>
    <td><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">女</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nv0}</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${nv0Bili}</a></td>
  </tr>
  <tr>
    <td><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">平均年龄</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">${avgAge0}</a></td>
    <td class="text-right"><a href="javascript:void(0)" onclick="toStatistics2('ageAll')">&nbsp;</a></td>
  </tr>
  </tbody>
</table>

<script>
  //进入 统计图页面
  function toStatistics2(urlName){
    loadURL("<%=path%>/com/statistics/"+urlName,$("#s2"));
  }
</script>